<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>获取一个 IEnumVariant</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.com-invoke.html">com_invoke</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.com-load-typelib.html">com_load_typelib</a></div>
 <div class="up"><a href="ref.com.html">COM 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.com-isenum" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">com_isenum</h1>
    <p class="verinfo">(PHP 4 &gt;= 4.1.0)</p><p class="refpurpose"><span class="refname">com_isenum</span> &mdash; <span class="dc-title">获取一个 IEnumVariant</span></p>

   </div>
   
 <div class="refsect1 description" id="refsect1-function.com-isenum-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>com_isenum</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.variant.html" class="type variant">variant</a></span> <code class="parameter">$com_module</code></span>
   )</div>

  <p class="para rdfs-comment">
   Checks to see if a COM object can be enumerated using the
   <em>Next()</em>  method hack.
   See <a href="class.com.html" class="xref">COM</a> class for more details on these
   methods.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.com-isenum-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">com_module</code></em></dt>

     <dd>

      <p class="para">
       The COM object.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.com-isenum-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> if the object can be enumerated, <strong><code>FALSE</code></strong> otherwise.
  </p>
 </div>

 <div class="refsect1 notes" id="refsect1-function.com-isenum-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    This function does not exist in PHP 5; use the more natural
    <a href="control-structures.foreach.html" class="link">foreach</a> statement to iterate over the contents of COM objects.
    See <a href="com.examples.foreach.html" class="xref">For Each</a> for more details.
   </p>
  </p></blockquote>
 </div>

  </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.com-invoke.html">com_invoke</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.com-load-typelib.html">com_load_typelib</a></div>
 <div class="up"><a href="ref.com.html">COM 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
